//

//  WithdrawDepositView.m
//  LuxuryGoods
//
//  Created by DCQ on 2018/5/24.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "WithdrawDepositBottomView.h"
#import "LGImageManagerIO.h"
@interface WithdrawDepositBottomView()
@property (weak, nonatomic) IBOutlet UIButton *btn;
@property (weak, nonatomic) IBOutlet UILabel *maxNo;
@property (weak, nonatomic) IBOutlet UILabel *minNo;

@end
@implementation WithdrawDepositBottomView

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    UIImage * btnImg = [LGImageManagerIO createGradualColorImage:self.btn.size startColor:UIColorFromRGB(0xE1CFA9) endColor:UIColorFromRGB(0xC1B284)];
    [self.btn setBackgroundImage:btnImg forState:UIControlStateNormal];
    [self.btn addTarget:self action:@selector(btnAction:) forControlEvents:UIControlEventTouchUpInside];
}
- (void)setupMaxNo:(NSString *)max withMin:(NSString *)min{
    
    self.maxNo.text = [NSString stringWithFormat:@"可提现金%@元",max] ;
    self.minNo.text = [NSString stringWithFormat:@"%@元起",min];
}

- (void)btnAction:(id)sender{
    
    if (self.btnBlock) {
        self.btnBlock();
    }
}
@end
